home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Hot Mix 17
/
Hot Mix 17.iso
/
HM17_SGI
/
research
/
examples
/
demo
/
demosrc
/
sizetips.pro
< prev
next >
Wrap
Text File
|
1997-07-08
|
773b
|
27 lines
;------------------------------------------------
;
; PURPOSE Size the tip widget to be half of
; the top level base width and map
; the base that contains the tip widgets.
;
pro sizeTips, $
wTopBase, $ ; IN: top level base
wText, $ ; IN: ID of the 2 tip text widgets
wTipBase ; IN: base of the 2 tip widgets.
; Get the x size of the top level base.
;
tlbGeometry = WIDGET_INFO(wTopBase, /GEOMETRY)
tlbXSize = tlbGeometry.xsize + (2 * tlbGeometry.margin)
; Size the tip widgets.
;
WIDGET_CONTROL, wText[0], SCR_XSIZE = tlbXSize/2 - 5
WIDGET_CONTROL, wText[1], SCR_XSIZE = tlbXSize/2 - 5
; Map the tip widgets.
;
WIDGET_CONTROL, wTipBase, MAP=1
end ; of sizeTips